package unit12;

import java.util.ArrayList;
import java.util.Date;

import unit5.Employee;
import unit5.Manager;

public class PairTest3 {
	public static void main(String[] args) {
		Manager ceo=new Manager("Gus", 100000,new Date());
		Manager cfo=new Manager("Sid", 700000, new Date());
		Pair<Manager> buddies=new Pair<>(ceo,cfo);
		printBuddies(buddies);
		
		ceo.setBonus(120000);
		cfo.setBonus(600000);
		Manager[] managers={ceo,cfo};
		
		Pair<Employee> result=new Pair<>();
		maxminBonus(managers,result);
		System.out.println("first:"+result.getFirst().getName()+"second:"+result.getSecond().getName());
	}
	private static void minmax(Manager[] m,Pair<? super Manager> result) {
		// TODO Auto-generated method stub
		
	}
	private static void maxminBonus(Manager[] managers, Pair<Employee> result) {
		// TODO Auto-generated method stub
		
	}

	private static void printBuddies(Pair<Manager> buddies) {
		// TODO Auto-generated method stub
		Manager first=buddies.getFirst();
		Manager second=buddies.getSecond();
		System.out.println(first.getName()+"add"+second.getName()+"are buddies.");
	}
}
